function formatDate(str_time) {
  var date = new Date(str_time); 
  var date = new Date(str_time.replace(/-/g, '/'));
  let time1 = date.getTime();
  return time1;
}

// console.log(formatDate('2023-10-01'));

function judgeMonCode(text) {
  let mon = /^[\u180a-\u18af]/g

  return mon.test(text) 
}

console.log(judgeMonCode(' ᠶᠠᠳᠠᠭᠤ ᠵᠢ ᠲᠡᠳᠭᠦᠬᠦ ᠲᠥᠷᠦ ᠶ᠋ᠢᠨ ᠪᠣᠳᠤᠯᠭ᠎ᠠ ᠶ᠋ᠢᠨ ᠮᠠᠭᠳᠠᠭᠠᠯ'));